package com.javaee.wordtree.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;
import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName(value = "story_templates", autoResultMap = true)
public class StoryTemplate {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String title;
    private String description;
    private String difficultyLevel;
    
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> wordList;
    
    private Integer totalPages;
    private String theme;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
}